﻿using Domain.Entity;
using Domain.Entity.bs;
using Domain.Entity.sys;
using Domain.Entity.zct;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.PublicFileService
{
    public interface IPublicFileService
    {
        //添加公共附件
        Task<int> AddFile(string? type, string? code, string? file, string? title);

        //根据业务类型和编号查询对应的附件
        Task<List<PublicFile>> GetPublicFileBy(string? type, string? code);

        //删除公共附件
        Task<int> DeleteFile(string? type, string? code);

        //添加公共附件
        Task<int> AddFile(AddFileDto addFileDto);
    }
}